import { createRouter, createWebHistory } from "vue-router";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/home",
      component: () => import("../components/11-home.vue"),
    },
    {
      path: "/about",
      component: () => import("../components/11-about.vue"),
    },
    {
      path: "/detail/:id",
      component: () => import("../components/11-detail.vue"),
    },
  ],
});

export default router;
